package com.example.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.model.article.pojos.ApArticle;
import com.example.model.search.vos.SearchArticleVo;
import com.example.model.user.pojos.ApUser;
import com.example.model.wemedia.pojos.WmMessage;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.Date;
import java.util.List;

@Mapper
public interface WmMessageMapper extends BaseMapper<WmMessage> {

    public void delApArticleByArticleId(@Param("articleId") String articleId);

    public List<ApArticle> getAllArticle();

    public List<ApUser> getFansList(@Param("userId") Integer userId);

    public Integer getFansNumIn7Days(@Param("date") String date,@Param("userId") Integer userId);

    public Integer getArticleThumbIn7Days(@Param("date") String date, @Param("userId") Integer userId);

    public Integer getCollectionNubIn7Days(@Param("date") String date,@Param("userId") Integer userId);

    public List<ApArticle> getApArticleList(@Param("id") Integer id,@Param("keyword") String keyword);

    public String getApArticleContent(@Param("id") String id);

    public SearchArticleVo loadArticleList(@Param("id") String id);

    public List<ApArticle> getApArticleListAll(@Param("keyword") String keyword);
}
